package com.iepacj.thkjava.innerclass;

public class Parcel {

	protected class PDestination implements Destination {

		private String label;
		
		public String readLabel() {
			return label;
		}
		
		public PDestination(String label) {
			this.label = label;
		}
	}
	
	/**
	 * 内部类PContant是private的
	 * 只有Parcel才能访问
	 * @author iEpac
	 *
	 */
	private class PContant implements Contants {

		private int i = 11;
		
		public int value() {
			return i;
		}
		
	}
	
	public Destination destination(String s) {
		return new PDestination(s);
	}
	
	public Contants contants() {
		return new PContant();
	}
	
}












